/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-06-07     Wangjiangbo       the first version
 */

#ifndef __BSP_FLASH_H__
#define __BSP_FLASH_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <bsp/bsp.h>

int bsp_flash_init(void);

int bsp_flash_write_down_section(uint32_t addr, uint8_t* data, uint16_t len);

int bsp_flash_read_down_section(uint32_t addr, uint8_t* data, uint16_t len);

int bsp_flash_ease_down_section(void);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* BSP_BSP_ONCHIP_FLASH_H_ */

